package com.mini.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangxiaobin
 * @title: BusinessTeacherInfo
 * @description: TODO
 * @date 2019/10/2715:53
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@IdClass(BusinessTeacherWechatInfoKey.class)
public class BusinessTeacherWechatInfo implements Serializable {

    @Id
    private Long teacherId;

    private String teacherName;

    @Id
    @ApiModelProperty(value = "运营老师微信号")
    private String wxNo;

    @ApiModelProperty(value = "运营老师微信二维码")
    private String wxQrUrl;

    @ApiModelProperty(value = "运营老师手机号")
    private String phone;

    @ApiModelProperty(value = "排序")
    private Long orders;

    @ApiModelProperty(value = "状态 0启用 1禁用")
    private Integer states;

    private Long createUser;

    private Long updateUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "状态 0落地页 1裂变 2企业微信")
    private Integer useType;

    private String corpId;

    private String corpName;

    private String corpUserId;

    private String corpUserName;

    private String corpUserQrUrl;

    private String corpUserAvatar;

}
